package com.googlecode.tidej.client;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;

public abstract class SimpleAsyncCallback<T> implements AsyncCallback<T>{
  @Override
  public void onFailure(Throwable caught) {
    StringBuilder sb = new StringBuilder(caught.toString());
    for (StackTraceElement se: caught.getStackTrace()) {
      sb.append('\n');
      sb.append(se.toString());
    }
    
    Window.alert(sb.toString());
  }
}
